package java8_24.oop.Test_6;

public class Parrot extends Pet {

    public Parrot(String name, double weight, String varieties) {
        super(name, weight, varieties);
    }
    public void fly(){
        System.out.println(getName()+"会飞");
    }
}
